<?php 
    require("config.php");
?>
<!-- Author Invisible Man -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>index</title>
     <link type="text/css" href="css/styles.css" rel="stylesheet" />
    </head>
    
    <body>
        <div class="container">
            	<?php include("header.php"); ?>
                <div class="clear"></div>
                <!-- </a><div class="side_right">
                </div> -->
                <div class="content"> 
                            <?php 
                            $i_count =1;
                            $result = mysql_query("SELECT * FROM items");
                            while ($row = mysql_fetch_assoc($result)){
                                echo '<div class="product_box"><a href="get.php?id='.$row['id'].'">
                                    <div class="product_name">'.$row['item_name']. '(' . $row['item_country'] . ')'.
                                    '</div>
                                    <div class="product_thump">
                                    <img src="'.$row['item_imgurl'].'" class="image-item"/>
                                    </div>
                                    <div class="product_bot">Prize: '.$row['item_price'].
                                    '$</div></a></div>';
                                    if ($i_count >15){
                                        break;
                                    }
                                    $i_count += 1;
                            }
                            mysql_close($con);
                          /*  for ($i=0;$i<=6;$i++) {
                            echo '
                                <div class="product_box">
                                    <div class="product_name">
                                    </div>
                                    <div class="product_thump">
                                    </div>
                                    <div class="product_bot">
                                    </div>
                                </div>';
                                } */
                            ?>       
                </div>
                <div class="clear">
                </div>
        		<div class="footer">
                	<span class="center">Copyright 2013 by Clbphanmem. Designed and Coded by Invisible Man.</span>
        		</div>
        </div>
    </body>
</html>